package java编程思想.第18章._6_IO流的典型使用方式;

import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.EOFException;
import java.io.IOException;

public class FormattedMemoryInput {
	public static void main(String[] args) throws IOException {
		try {
			DataInputStream in = new DataInputStream(new ByteArrayInputStream(
					BufferedInputFile.read("./src/java编程思想/第18章/_6_IO流的典型使用方式/FormattedMemoryInput.java").getBytes()));
			while (true) {
				System.out.print((char) in.readByte());
			}
		} catch (EOFException e) {
			System.err.println("End of stream");
		}
	}
}
